const DEFAULT_KEY = "token";
// 获取本地
function getLocal(key = DEFAULT_KEY) {
	return localStorage.getItem(key);
}
// 删除
function removeLocal(key = DEFAULT_KEY) {
	window.localStorage.removeItem(key);
}
// 保存
function setLocal(value: any, key = DEFAULT_KEY) {
	window.localStorage.setItem(key, value);
}
const getEmptyIcon = () => {
	return new URL("@/assets/img/H5/empty.png", import.meta.url).href;
};

export enum AREA_CONVERSION {
	福建 = "FJ",
	广东 = "GD",
	进口 = "JK",
}

export type AREA_CONVERSION_TYPES = keyof typeof AREA_CONVERSION;
export { getLocal, removeLocal, setLocal, getEmptyIcon };
